<%-- 
    Document   : department_form
    Created on : Jan 18, 2013, 3:51:53 PM
    Author     : owtee
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table align="center">
    <c:forEach items="${mesLst}" var="message">
        <tr>
            <td colspan="2">${message.getMesDetail()}</td>
        </tr>
    </c:forEach> 
    <tr>
        <td colspan="2">แผนก<hr></td>
    </tr>
    <tr>
        <td>บริษัท :</td>
        <td>
            <select id="ddlCom" name="ddlCom">
                <option value="">--- กรุณาเลือก ---</option>
                <c:forEach items="${comLst}" var="com">
                    <option value="${com.getComId()}" <c:if test="${com.getComId() == dep.getComId().getComId()}">selected</c:if>>
                        ${com.getComName()}
                    </option>
                </c:forEach>
            </select>
        </td>
    </tr>
    <tr>
        <td>ชื่อแผนก :</td>
        <td>
            <input class="inputbox" type="text" id="txtDepartment" name="txtDepartment" value="${dep.getDepName()}" />
        </td>
    </tr>                        
    <tr>
        <td colspan="2" style="text-align: center">
            <input type="submit" value="Save" />            
            <input type="button" value="Cancel" onclick="location.href='DepartmentGetAll'"/>
        </td>                        
    </tr>
</table>
